package cn.wolfcode.crm.domain;

public class Hello2 <T> {
    public static final int CODE_SUCCESS = 200;
    public static final String MSG_SUCCESS = "操作成功";

    private int code;
    private String msg;
    private T data;
    public Hello2(int code,String msg,T data){
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public static <T> Hello2 success(T data){
        return new Hello2(CODE_SUCCESS,MSG_SUCCESS,data);
    }

}
